﻿using System;
using System.Web;
using StructureMap;

namespace WS.EKA.Utilities.Core
{
    [PluginFamily(IsSingleton = true)]
    public interface ICookieRepository
    {
        HttpCookie this[string key] { get; set; }

        string TryGet(string key);
        string TryGet(string key, Func<string> getDefault);

        void Set(string key, string value, int timeoutHours);
        void Remove(string key);
    }
}
